package webday04;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class DemoListener implements ServletContextListener {

	//同一个服务器多个监听，输出前后与在配置里的顺序有关，
	
	@Override
	public void contextInitialized(ServletContextEvent sce) {
		
		System.out.println("servletcontext初始化完成。。。。");
		
	}

	@Override
	public void contextDestroyed(ServletContextEvent sce) {
		System.out.println("servletcontext销毁。。。。");
		
	}

}
